package com.ruoyi.web.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 指数、行业、概念树对象 gu_mr_hszg
 * 
 * @author ruoyi
 * @date 2025-10-17
 */
public class GuMrHszg extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 代码 */
    @Excel(name = "代码")
    private String code;

    /** 一级分类（0: */
    @Excel(name = "一级分类", readConverterExp = "一级分类（0:")
    private Long type1;

    /** 二级分类 */
    @Excel(name = "二级分类")
    private Long type2;

    /** 层级，从0开始，根节点为0，二级节点为1， */
    @Excel(name = "层级，从0开始，根节点为0，二级节点为1，")
    private Long level;

    /** 父节点代码 */
    @Excel(name = "父节点代码")
    private String pcode;

    /** 父节点名称 */
    @Excel(name = "父节点名称")
    private String pname;

    /** 是否为叶子节点，0：否，1：是 */
    @Excel(name = "是否为叶子节点，0：否，1：是")
    private Long isleaf;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setType1(Long type1) 
    {
        this.type1 = type1;
    }

    public Long getType1() 
    {
        return type1;
    }

    public void setType2(Long type2) 
    {
        this.type2 = type2;
    }

    public Long getType2() 
    {
        return type2;
    }

    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }

    public void setPcode(String pcode) 
    {
        this.pcode = pcode;
    }

    public String getPcode() 
    {
        return pcode;
    }

    public void setPname(String pname) 
    {
        this.pname = pname;
    }

    public String getPname() 
    {
        return pname;
    }

    public void setIsleaf(Long isleaf) 
    {
        this.isleaf = isleaf;
    }

    public Long getIsleaf() 
    {
        return isleaf;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("code", getCode())
            .append("type1", getType1())
            .append("type2", getType2())
            .append("level", getLevel())
            .append("pcode", getPcode())
            .append("pname", getPname())
            .append("isleaf", getIsleaf())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
